}
-static void
-gpsutil_disp(waypoint *wpt)
-{
-#if 0
- double lon,lat;
- signed int ilon, ilat;
- const char *icon_token = "0";
- char tbuf[1024];
- char *tp = tbuf;
- time_t tm = wpt->creation_time;
-
- lon = wpt->position.longitude.degrees;
- lat = wpt->position.latitude.degrees;
-
- fprintf(file_out, "%08.5f, %08.5f, %s\n",
- lat,
- lon,
- wpt->description);
-
-#else
-// garmin_write_waypoint(wpt);
-#endif
-}
static void
data_write(void)
{
static FILE *file_in;
-static unsigned char byWpoFile[GM100_WPO_FILE_SIZE];
static unsigned char *HxWFile;
static char fOutname[256];
{
char name[9], desc[90];
double lat,lon;
- char icon[3] = {0};
unsigned char *HxWpt;
waypoint *wpt_tmp;
int iCount;
static void gpsutil_disp(waypoint *wpt)
{
double lon,lat;
- const char *icon_token = "0";
- char tbuf[1024];
- char *tp = tbuf;
- time_t tm = wpt->creation_time;
int iIndex;
WPT *pWptHxTmp;
********************************************************************/
#include "gps.h"
#include <stdio.h>
+#include <string.h>
#include <time.h>
#include <stdlib.h>
#include <unistd.h>
** Boston, MA 02111-1307, USA.
********************************************************************/
#include "gps.h"
-// #include <termios.h>
#include <fcntl.h>
static int32 gps_endian_called=0;
waypoint *wpt;
};
-static
-int
-compare(const void *a, const void *b)
-{
- const struct hdr *wa = a;
- const struct hdr *wb = b;
-
- return strcmp(wa->wpt->shortname, wb->wpt->shortname);
-}
-
static void
data_write(void)
{
#include <ctype.h>
#include <stdlib.h>
+#include "defs.h"
+
static const char vowels[] = "aeiouAEIOU";
#define DEFAULT_TARGET_LEN 8
}
char *
-mkshort(char *istring)
+mkshort(const char *istring)
{
char *ostring = strdup(istring);
char *nstring;